package com.tm.fiverole.ulits;

public class Pageutil {
    private Long totalCount;
    private Integer cPage = 1;
    private Integer pageSize = 10;
    private Integer startIndex = 0;
    private Object list;

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getCurrentPage() {
        return cPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.cPage = currentPage;
        this.startIndex = (this.cPage-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        this.startIndex = (this.cPage-1)*this.pageSize;
    }

    public Integer getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(Integer startIndex) {
        this.startIndex = startIndex;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }
}
